home *** CD-ROM | disk | FTP | other *** search
- #pragma namespace ("\\\\.\\Root\\Default")
-
- qualifier description: amended;
-
- [locale(0x409)]
- class ActiveScriptEventConsumer : __EventConsumer
- {
- [key] string Name;
-
- [not_null, description("Name of the scripting engine, ex: VBScript")]
- string ScriptingEngine;
-
- [Template, description("Text of the script, expressed in a language"
- "known to the scripting engine.")]
- string ScriptText;
-
- [description("Filename of a script file to be run, note that this"
- "is intended as an alternative to specifying the text"
- "of the script in ScriptText. Results are undefined"
- "if both properties are assigned values.")]
- string ScriptFilename;
-
- [description("Number of seconds that the script is allowed to run,"
- "if zero script will not be terminated. Applies"
- "only to scripts specified in the ScriptText property.")]
- uint32 KillTimeout = 0;
- };
-
- instance of __Win32Provider as $P
- {
- Name = "ActiveScriptEventConsumer";
- Clsid = "{266c72e7-62e8-11d1-ad89-00c04fd8fdff}";
-
- PerUserInitialization = TRUE;
- };
-
- instance of __EventConsumerProviderRegistration
- {
- Provider = $P;
- ConsumerClassNames = {"ActiveScriptEventConsumer"};
- };
-
-
-
- #pragma namespace ("\\\\.\\Root")
-
- instance of __Namespace
- {
- Name = "CIMV2";
- };
-
- #pragma namespace ("\\\\.\\Root\\CIMV2")
-
- [locale(0x409),Singleton, Description("Provides registration data"
- "common to all instances of the Scripting Standard Consumer")]
- class ScriptingStandardConsumerSetting : CIM_Setting
- {
- [Read, Override ("SettingID")]
- string SettingID = "ScriptingStandardConsumerSetting";
-
- [Read, Override ("Caption")]
- string Caption = "Scripting Standard Consumer Setting";
-
- [Read, Override ("Description")]
- string Description = "Registration data common to all instances of the Scripting Standard Consumer";
-
- [Read, Description("Maximum number of scripts run before the consumer"
- "will start a new instance. The consumer should be shut down"
- "periodically to clear out memory leaks from the scripts.")]
- uint32 MaximumScripts = 300;
-
- [Read, Description("Maximum number of minutes before the consumer"
- "will start a new instance. If zero, consumer lifetime is"
- "controlled by the MaximumScripts property. Valid Range: 0-71,000."),
- units ("Minutes")]
- uint32 Timeout = 0;
- };
-
- instance of ScriptingStandardConsumerSetting
- {
- MaximumScripts = 300;
- Timeout = 0;
- };